<?php
declare (strict_types = 1);

namespace app\home\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class pyg_goods extends Model
{
    public function pygGoods()
    {
        return $this->hasMany(pyg_spec_goods::class,'goods_id','id')->withoutField('delete_time,create_time,update_time');
    }
    public function pygImage()
    {
        return $this->hasMany(pyg_goods_images::class,'goods_id','id')->withoutField('delete_time,create_time,update_time');
    }
    public function package()
    {
        return $this->hasMany(pyg_spec_goods::class,'goods_id','id')->withoutField('delete_time,create_time,update_time');
    }
}
